<div class="dux-tools">
  <div class="bread-head">站内链接 <span class="small">主要用于内容增加内链</span> </div>
  <br>
  <div class="tools-function clearfix">
    <div class="float-left"> <a class="button button-small bg-main icon-list" href="__URL__"> 内容替换列表</a> </div>
    <?php if(model('user_group')->model_power('fragment','add')){ ?>
    <div class="button-group float-right"> <a class="button button-small bg-dot icon-plus dropdown-toggle"> 添加内容替换 <span class="downward"></span></a>
      <ul class="drop-menu pull-right">
        <li><a href="__URL__/add">添加内容替换</a></li>
      </ul>
    </div>
    <?php } ?>
  </div>
</div>
<div class="admin-main">
  <form action="__URL__/{$action}_save/time-<?php echo time(); ?>-ajax-true" method="post" id="form" class="form-x dux-form form-auto">
    <div class="panel dux-box  active">
    <div class="panel-head"> <strong>{$action_name}内容替换</strong> </div>
    <div class="panel-body">
      <div class="form-group">
        <div class="label">
          <label>被替换内容</label>
        </div>
        <div class="field">
          <input name="key" type="text" class="input" size="60" id="key" value="{$info.key}" reg="\S" msg="内容替换名称不能为空" />
          
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>替换后内容</label>
        </div>
        <div class="field">
          <input name="content" type="text" class="input" size="60" id="content" reg="\S" msg="替换后内容不能为空" value="{$info.content}" />
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>替换次数</label>
        </div>
        <div class="field">
         <input name="num" type="text" class="input" size="10" id="num" value="{$info.num isset="1"}" reg="[0-9]" msg="替换次数只能为数字" />
        </div>

      </div>
    </div>
   <?php if(model('user_group')->model_power('fragment','add')||model('user_group')->model_power('fragment','edit')){ ?>
    <!--普通提交-->
    <div class="panel-foot">
      <div class="form-button">
        <div id="tips"></div>
       <input name="id" type="hidden" value="{$info.id}" />
        <button type="submit" class="button bg-main">保存</button>
      </div>
    </div>
    <?php } ?>
  </form>
</div>
</div>
<script type="text/javascript">
//提交表单
savelistform({addurl:"__URL__/add",listurl:"__URL__"});
</script>